博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jquery ajax 局部table 刷新技术
阅读量:4687 次
发布时间:2019-06-09

本文共 2580 字,大约阅读时间需要 8 分钟。

点击查询:

 

 

下面先上html页面:

 

Examples

约见列表

编号 约见标题 姓名 所属地区 创建时间 操作
{$vo.userid} {$vo.title} {$vo.username} {$vo.name} {$vo.pubtime|date='Y-m-d',###} 删除
{$page}

再上jquery代码:

 

最后上php代码:

 

public function search()    {       $title=$_POST['title'];       if($title)       {            $moden=M('meet');            import("ORG.Util.Page");            $count= $moden->where("title='$title'")->count();            $Page= new Page($count,17);            $show= $Page->show();            $sql="select userid,username,city_id,name ,title,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            //$sql="select userid,username,city_id,name ,title,age,height,sex,telephone,education_id,professional,month_salary,weixin,pubtime from meet,region where title='$title' and id=city_id order by userid desc limit $Page->firstRow, $Page->listRows";            $rs=$moden->query($sql);            if($rs)            {                foreach ($rs as $k => $v)                {                    $rs[$k]['sex']=$v['sex']==1?'女':'男';                    $rs[$k]['pubtime']= date('Y-m-d', $rs[$k]['pubtime']);                }                $json = array(                    'page' => $show,                    'data' => $rs                );                echo json_encode($json);            }else            {                echo '0';            }       }            }

 

转载于:https://www.cnblogs.com/hnbiao/p/jquery.html

你可能感兴趣的文章
农银电商项目学习笔记(一)
查看>>
MockObject
查看>>
Chukwa
查看>>
(转)Maven仓库——私服介绍
查看>>
设计模式之工厂模式
查看>>
仿复制粘贴功能,长按弹出tips的实现
查看>>
Kubernetes-Host网络模式应用
查看>>
第三次作业
查看>>
使用HTML5构建iOS原生APP(2)
查看>>
购物车的简单添加与计算
查看>>
sqlplus terminators - Semicolumn (;), slash (/) and a blank line
查看>>
省选知识清单/计划列表(咕?)
查看>>
远程桌面(3389)复制(拖动)文件
查看>>
转 lucene3搜索引擎,索引建立搜索排序分页高亮显示, IKAnalyzer分词
查看>>
ASP.net在线购物商城系统完全解析
查看>>
bootstrap datetimepicker 位置错误
查看>>
9结构型模式之代理模式
查看>>
第二节 整型数据
查看>>
Python 序列
查看>>
Liferay的架构:缓存(第一部分)
查看>>